package cn.com.blueInfo.HaiYuan.business.purchase.mapper;

import cn.com.blueInfo.HaiYuan.business.purchase.entity.PurchaseLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 采购记录表
 * @ClassName: PurchaseLogMapper
 * @tableName: tj_hai_purchase_log
 * @author suxch
 * @date 2019年4月23日  下午3:20:58
 */
@Mapper
public interface PurchaseLogMapper extends BaseMapper<PurchaseLog> {

    /**
     * 批量新增采购记录信息
     * @Title: batchAddPurchaseLogInfo
     * @param purchaseLogList
     * @return int
     * @throws
     */
    int batchAddPurchaseLogInfo(List<PurchaseLog> purchaseLogList);

    /**
     * 新增采购记录信息
     * @Title: addPurchaseLogInfo
     * @param purchaseLog
     * @return int
     * @throws
     */
    int addPurchaseLogInfo(PurchaseLog purchaseLog);

    /**
     * 批量删除采购记录信息
     * @Title: batchDelPurchaseLogInfoByUnids
     * @param purchaseLogUnids
     * @return int
     * @throws
     */
    int batchDelPurchaseLogInfoByUnids(ArrayList<String> purchaseLogUnids);

    /**
     * 删除采购记录信息
     * @Title: delPurchaseLogInfoByUnid
     * @param unid
     * @return int
     * @throws
     */
    int delPurchaseLogInfoByUnid(String unid);

    /**
     * 批量更新采购记录信息
     * @Title: batchUpdatePurchaseLogInfoByUnid
     * @param purchaseLogList
     * @return int
     * @throws
     */
    int batchUpdatePurchaseLogInfoByUnid(List<PurchaseLog> purchaseLogList);

    /**
     * 更新采购记录信息
     * @Title: updatePurchaseLogInfoByUnid
     * @param purchaseLog
     * @return int
     * @throws
     */
    int updatePurchaseLogInfoByUnid(PurchaseLog purchaseLog);

    /**
     * 分页查询采购记录信息
     * @Title: queryPurchaseLogInfo
     * @param paramMap
     * @return List<PurchaseLog>
     * @throws
     */
    List<PurchaseLog> queryPurchaseLogInfo(Map<String, Object> paramMap);

    /**
     * 查询采购记录信息
     * @Title: queryPurchaseLogInfo
     * @return List<PurchaseLog>
     * @throws
     */
    List<PurchaseLog> queryPurchaseLogInfo();

    /**
     * 条件查询采购记录信息数量
     * @Title: queryPurchaseLogInfoCount
     * @param paramMap
     * @return Integer
     * @throws
     */
    Integer queryPurchaseLogInfoCount(Map<String, Object> paramMap);

    /**
     * 查询采购记录信息数量
     * @Title: queryPurchaseLogInfoCount
     * @return Integer
     * @throws
     */
    Integer queryPurchaseLogInfoCount();

    /**
     * 查询采购记录最大排序编号
     * @Title: queryMaxOrderNumber
     * @return Integer
     * @throws
     */
    Integer queryMaxOrderNumber();

}
